-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Port skipif.inc to EXTENSIONS #7141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@cmb69 I see a test failure on Windows after these changes:
I fixed the temp dir issue but the behavior still looks wrong. Should this test just be skipped on Windows? I assume it didn't run previously. |
Wouldn't ext/ldap/tests/ldap_connect_ldap_conf.phpt also need Of course, ideally we should set up an LDAP test environment on Windows, but I wouldn't know how. |
I'm not completely sure, but I don't think so. If I understand correctly, ldap_bind() is the operation that actually "connects" in the classical sense, while this test only uses ldap_connect(). |
I think |
For this particular test, the purpose is to check that the |
|
Quick hack for AppVeyor to exclude all extensions from php.ini, but not to execute any tests for unsupported extensions: appveyor/build_task.bat | 2 +-
appveyor/test_task.bat | 11 ++++++++---
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/appveyor/build_task.bat b/appveyor/build_task.bat
index 93ed1bccf3..1a5d7113ec 100644
--- a/appveyor/build_task.bat
+++ b/appveyor/build_task.bat
@@ -62,7 +62,7 @@ if "%INTRINSICS%" neq "" set ADD_CONF=%ADD_CONF% --enable-native-intrinsics=%INT
set EXT_EXCLUDE_FROM_TEST=snmp,oci8_12c,pdo_oci,pdo_firebird,ldap,imap
rem the following exts are tested via --EXTENSIONS--; update as necessary
-set EXT_EXCLUDE_FROM_TEST=bz2,exif,fileinfo,ffi,ftp,gd,gmp,soap,sodium,sqlite3,tidy,%EXT_EXCLUDE_FROM_TEST%
+set EXT_EXCLUDE_FROM_TEST=bz2,curl,dba,enchant,exif,fileinfo,ffi,ftp,gd,gettext,gmp,intl,mbstring,mysqli,odbc,openssl,pdo_mysql,pdo_odbc,pdo_pgsql,pdo_sqlite,pgsql,shmop,soap,sockets,sodium,sqlite3,sysvshm,tidy,xsl,zend_test,%EXT_EXCLUDE_FROM_TEST%
if "%OPCACHE%" equ "0" set EXT_EXCLUDE_FROM_TEST=%EXT_EXCLUDE_FROM_TEST%,opcache
set CFLAGS=/W1 /WX
diff --git a/appveyor/test_task.bat b/appveyor/test_task.bat
index 87eee6de8b..47e2a52dbc 100644
--- a/appveyor/test_task.bat
+++ b/appveyor/test_task.bat
@@ -89,9 +89,14 @@ if not exist "%PHP_BUILD_CACHE_ENCHANT_DICT_DIR%\en_US.aff" (
mkdir %LOCALAPPDATA%\enchant\hunspell
copy %PHP_BUILD_CACHE_ENCHANT_DICT_DIR%\* %LOCALAPPDATA%\enchant\hunspell
-set TEST_PHPDBG_EXECUTABLE=%PHP_BUILD_OBJ_DIR%\Release
-if "%THREAD_SAFE%" equ "1" set TEST_PHPDBG_EXECUTABLE=%TEST_PHPDBG_EXECUTABLE%_TS
-set TEST_PHPDBG_EXECUTABLE=%TEST_PHPDBG_EXECUTABLE%\phpdbg.exe
+rem remove ext dlls for which tests are not supported
+set PHP_BUILD_DIR=%PHP_BUILD_OBJ_DIR%\Release
+if "%THREAD_SAFE%" equ "1" set PHP_BUILD_DIR=%PHP_BUILD_DIR%_TS
+for %%i in (imap ldap oci8_12c pdo_firebird pdo_oci snmp) do (
+ del %PHP_BUILD_DIR%\php_%%i.dll
+)
+
+set TEST_PHPDBG_EXECUTABLE=%PHP_BUILD_DIR%\phpdbg.exe
mkdir c:\tests_tmp A cleaner solution would be not to use the auto-generated php.ini at all, but to create it here (only a few entries are actually necessary). This would save the |
Thanks, I implemented that option in 7485682 and it worked. The rest of this change is merged in 849a34e.
That would be ideal. Which extensions still need to be explicitly enabled? |
See PR #7150. |
In some cases this drops skipif.inc completely, in some cases only removes the extension_loaded check.